package dto

import "admin/utils/pagination"

// ListAdminUserReq
type ListAdminUserReq struct {
	pagination.PageInfo
	Keyword string `json:"keyword"`
	Status  int    `json:"status"`
	RoleID  int    `json:"role_id"`
}

// CreateAdminUserReq 创建管理员请求
type CreateAdminUserReq struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

// UpdateAdminUserReq 更新管理员请求
type UpdateAdminUserReq struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password"`
}

// AddOrDelRoleToUserReq 添加、删除角色请求
type AddOrDelRoleToUserReq struct {
	RoleID int64 `json:"role_id" binding:"required"`
}

// CommonIDParam 路由中获取的通用 ID 参数
type CommonIDParam struct {
	ID     int64 `uri:"id" binding:"required"`
	RoleID int64 `uri:"role_id"`
}

// 操作用户
type OperatorUserReq struct {
	ID int64 `uri:"id" binding:"required"`
}
